package com.easyedu.dean.entity.dto.request;


import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;


/**
 * @author mengranliu
 * @date 2022/3/7
 */
@Data
public class ReqCreateOpenCourse {

     /**
      * 培养方案id
      */
     @Min(value = 0, message = "培养方案id不能为空")
     private int cultivationSchemeId;
     /**
      * 开课专业id
      */
     @Min(value = 0, message = "开课专业id不能为空")
     private int departmentId;
     /**
      * 开课教师
      */
     @NotNull
     private String teacherId;
     /**
      * 开课人数
      */
     @Min(value = 0, message = "开课人数不能为0")
     private int capacity;
     /**
      * 是否重修。1为正修；2为重修
      */
     @Min(value = 1, message = "重修标记只能为1或2")
     @Max(value = 2, message = "重修标记只能为1或2")
     private int repeat;

     @NotNull(message = "年级不能为空")
     private String schoolYear;
}
